A detailed explanation - http://gamearchitect.net/Articles/ExceptionsAndErrorCodes.html

 What are exceptions?  - https://binkley.blogspot.com/2018/11/what-are-exceptions.html